package org.gd.hellojaxb.privat24.html;


import org.gd.hellojaxb.utils.Marshall;
import org.gd.hellojaxb.utils.MarshallProperties;

import javax.xml.bind.JAXBException;
import java.io.IOException;

public class HtmlMain {

    public static void main(String...args) throws JAXBException, IOException {
        System.out.println();
        System.out.println();

        System.out.println(Marshall.getInstance().marshal(
                new HtmlLink("http://google.com", "<a>google</a>"),
                MarshallProperties.FORMATTED_OUTPUT,
                MarshallProperties.WITHOUT_XML_HEADER

        ).replace("&lt;", "<").replace("&gt;", ">"));
    }

}
